from view.blockImgs.BlockImg import BlockImg


class GroundImg(BlockImg):
    def __init__(self, img_type, x_position=0, y_position=0):
        BlockImg.__init__(self, "resources/地形/ground.png", x_position, y_position)

    def update(self):
        self.rect.centerx = int(self.location[0] * 48 + 48 - self.rect.width // 2)
        self.rect.bottom = int(self.location[1] * 48 + 96 - self.rect.height)